﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.Logging
{
    public class NullLogger:ILogging.ILogger
    {
        private static readonly ILogging.ILogger _instance = new NullLogger();

        public static ILogging.ILogger Instance
        {
            get
            {
                return _instance;
            }
        }
        public bool IsEnabled(ILogging.LogLevel level)
        {
            return false;
        }

        public void Log(ILogging.LogLevel level, Exception exception, string format, params object[] args)
        {
            ///Null Logger 不会写入或者说进行任何的操作
        }
    }
}
